package com.lkei.service.impl;

import com.lkei.dao.GroupMessageDAO;
import com.lkei.entity.GroupMessage;
import com.lkei.service.GroupMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("groupMessageService")
public class GroupMessageServiceImpl implements GroupMessageService {

    @Autowired
    private GroupMessageDAO groupMessageDAO;

    @Override
    public List<GroupMessage> findGroupMessageByName(String groupName) {
        return groupMessageDAO.findGroupMessageByName(groupName);
    }
    @Override
    public List<GroupMessage> findAll(){
        return groupMessageDAO.findAll();
    }

}
